package service.impl;

import dao.StaffDao;
import entity.Staff;
import org.springframework.stereotype.Service;
import service.StaffService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("staffService")
public class Staffimpl implements StaffService {
    @Resource(name="staffDao")
    private StaffDao staffDao;

    @Override
    public List<Staff> listjin() {
        return staffDao.listjin();
    }

    @Override
    public List<Staff> listchu() {
        return staffDao.listchu();
    }

    @Override
    public List<Staff> Q() {
        return staffDao.Q();
    }

    @Override
    public List<Staff> Qlist(Map<String, Object> map) {
        return staffDao.Qlist(map);
    }

    @Override
    public int Qadd(Staff staff) {
        return staffDao.Qadd(staff);
    }

    @Override
    public int Qupd(Staff staff) {
        return staffDao.Qupd(staff);
    }

    @Override
    public int Qdel(Staff staff) {
        return staffDao.Qdel(staff);
    }
}
